Methods and apparatus for migrating thin provisioning volumes between storage systems

ABSTRACT

Multiple storage systems have capability to provide thin provisioning volumes to host computers and capability to transfer (import/export) management information regarding thin provisioning between storage systems. Moreover, at least one of the storage systems posses capability to provide storage area of other storage system as own storage area virtually via connection to the other storage system (i.e. external storage). Target storage system achieves efficient migration and unifying storage resource pool by importing or referring the management information obtained from source storage system and by utilizing the source storage system as external storage. One implementation involves method and process for migration of thin provisioning volumes using chunks having same length between source storage system and destination storage system. In this implementation, storage resource pool is unified by importing management information from the source storage system, and automated page-based relocation is performed to adjust actual location of data.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a Continuation of U.S. patent application Ser. No.12/369,363 filed Feb. 11, 2009, now issued U.S. Pat. No. 8,407,436, thedisclosure of which is incorporated herein by reference in its entiretyfor all purposes.

BACKGROUND

1. Field of the Invention

This invention generally relaters to storage technology and, moreparticularly, to method and apparatus for migrating thin provisioningvolumes between storage systems. In addition, this invention relates tounification of a storage resource pool.

2. Description of the Related Art

To reduce storage costs, management costs and power consumption, thinprovisioning capability in storage systems has been implemented. Withthin provisioning, a storage system provides virtual volumes as storagearea to store data for host computers. In the virtual volumes, thestorage system allocates and assigns physical data storage areas only totarget locations of a write access command received from host computers.Because not all virtual storage locations are associated with physicalstorage location, the total amount of used physical area in pool can besmaller than total amount of virtual area shown to the host computers.To achieve this capability, the storage system divides storage area(e.g. storage area in HDD or flash memory) into plurality offixed-length areas called chunks or pages, and manages mapping betweenchunks and logical segments in the virtual volumes.

For example, U.S. Pat. No. 7,162,600, incorporated herein by reference,discloses techniques for implementing thin provisioning in a storagesystem and for utilizing external storage. Specifically, methods formigration between normal (not thin provisioning) volumes and thinprovisioning volumes are disclosed.

However, because the thin provisioning is independently implemented ineach storage system, efficient migration of thin provisioning volumesbetween multiple storage systems is not easily achieved. That is,migration of thin provisioning volumes requires transferring the entirestorage capacity of the virtual volumes between storage systems even ifthe virtual volumes store only a small amount of actual data.Specifically, the conventional technology does not provide a method forachieving efficient migration of thin provisioning volumes when thechunk length is deferent between the storage systems.

Migration of volumes between storage systems may be required when datastored in the volumes is moved from old storage system to new storagesystem for repurposing/reuse of the old storage system or when storageenvironment is reconstructed in order to achieve centralized managementon one storage system with virtualization of external storage (e.g.unifying storage resource pool).

Therefore, what is needed is a method and apparatus to achieve efficientmigration of thin provisioning volumes between storage systems and tounify the storage resource pool.

SUMMARY OF THE INVENTION

The inventive methodology is directed to methods and systems thatsubstantially obviate one or more of the above and other problemsassociated with conventional techniques for migrating thin provisioningvolumes and for unifying the storage resource pool.

In an embodiment of the presented invention, multiple storage systemshave a capability to provide thin provisioning volumes to host computersand a capability to transfer (import/export) management informationrelating to thin provisioning configuration between the storage systems.Moreover, at least one of the storage systems posses a capability toprovide storage area of other storage system as own storage areavirtually via connection to the other storage system (i.e. externalstorage). A storage system that is destination of migration of thinprovisioning volumes achieves efficient migration and unifying storageresource pool by importing or referring the management informationobtained from other storage system that is source of the migration andby utilizing the source storage system as external storage.

One embodiment of the invention provides method and process formigration of thin provisioning volumes using chunks having the samelength between source storage system and destination storage system. Inthis embodiment, storage resource pool is unified by importingmanagement information from the source storage system, and automatedpage-based relocation is performed to adjust actual location of data.

Another embodiment shows method and process for migration of thinprovisioning volumes having different chunk length between sourcestorage system and destination storage system. In this embodiment,management information relating to thin provisioning volumes in thesource storage system is used by the destination storage system toperform the migration.

In accordance with one aspect of the present invention there is provideda thin provisioning storage system including multiple data storageunits, the multiple data storage units being divided into multiplechunks forming a chunk pool. The inventive thin provisioning storagesystem also includes at least one network interface configured toconnect the storage system with a source thin provisioning storagesystem and at least one host computer. The thin provisioning storagesystem further includes a storage controller incorporating a centralprocessing unit and a memory. The aforesaid storage controller isconfigured to import source mapping information from the source thinprovisioning storage system, the source mapping information beingindicative of a correspondence of allocated chunks to a source datastorage volume in the source thin provisioning storage system; use thesource mapping information to provision a target data storage volume;and make the provisioned target data storage volume available to the atleast one host computer via the at least one network interface.

In accordance with another aspect of the present invention, there isprovided a thin provisioning storage system including multiple datastorage units, the multiple data storage units being divided into amultiple chunks forming a chunk pool. The inventive thin provisioningstorage system also includes at least one network interface configuredto connect the storage system with a second thin provisioning storagesystem and at least one host computer; and a storage controllerincluding a central processing unit and a memory. The storage controlleris configured to: import source mapping information from the source thinprovisioning storage system, the source mapping information beingindicative of a correspondence of allocated chunks to a source datastorage volume in the source thin provisioning storage system; and usethe source mapping information to make the source data storage volumeavailable as external storage to the at least one host computer via theat least one network interface.

In accordance with yet another aspect of the present invention there isprovided a thin provisioning storage system including multiple datastorage units, the multiple data storage units being divided into aplurality of chunks forming a chunk pool. The inventive thinprovisioning storage system also includes at least one network interfaceconfigured to connect the storage system with a target thin provisioningstorage system and at least one host computer; and a storage controllerincluding a central processing unit and a memory. The storage controlleris configured to provision a source data storage volume and to make thesource data storage volume available to the host computer via the atleast one network interface. Upon receipt of a write command directed tothe source data storage volume from the at least one host computer, thestorage controller allocates at least one chunk from the chunk pool tothe source data storage volume and stores the data associated with thewrite command in the allocated at least one chunk. The storagecontroller also stores source mapping information indicative of thecorrespondence of the allocated chunk to the source data storage volumeand exports the source mapping information to the target thinprovisioning storage system.

Additional aspects related to the invention will be set forth in part inthe description which follows, and in part will be obvious from thedescription, or may be learned by practice of the invention. Aspects ofthe invention may be realized and attained by means of the elements andcombinations of various elements and aspects particularly pointed out inthe following detailed description and the appended claims.

It is to be understood that both the foregoing and the followingdescriptions are exemplary and explanatory only and are not intended tolimit the claimed invention or application thereof in any mannerwhatsoever.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings, which are incorporated in and constitute apart of this specification exemplify the embodiments of the presentinvention and, together with the description, serve to explain andillustrate principles of the inventive technique. Specifically:

FIG. 1 provides an overview of migration of thin provisioning volumesbetween multiple storage systems.

FIG. 2 provides another example of configuration, wherein SAN isseparated before the migration to avoid influence of migration on SANbetween host computer and storage system.

FIG. 3 illustrates an exemplary system configuration.

FIG. 4 illustrates a structure and method for providing a thinprovisioning volume (TPV).

FIG. 5 illustrates an example of mapping information.

FIG. 6 illustrates an exemplary embodiment of pool information.

FIG. 7 illustrates an exemplary embodiment of a write process for a TPV.

FIG. 8 illustrates an example of access information.

FIG. 9 illustrates a read process for TPV.

FIG. 10 illustrates an exemplary process for efficient migration of datafrom source TPV in source storage system to destination TPV indestination storage system.

FIG. 11 illustrates an example of external storage information.

FIG. 12 illustrates a process for determining whether the relocationwill be performed or not.

FIG. 13 illustrates an example of relocation condition.

FIG. 14 illustrates the relocation process performed in step 1306described in FIG. 12.

FIG. 15 illustrates an example of the relocation information.

FIG. 16 illustrates an example of unmatched boundary of segment andchunk between source storage system and destination storage system.

FIG. 17 illustrates an exemplary process for efficient migration of datafrom source TPV in source storage system to destination TPV indestination storage system.

FIG. 18 and FIG. 19 illustrate exemplary embodiments of mappinginformation and pool information.

FIG. 20 illustrates an exemplary embodiment of a copy process formigration of data stored in the source TPV to the destination TPV.

FIG. 21 illustrates an exemplary correspondence of the data to the newchunk.

FIG. 22 illustrates an exemplary write process for destination TPV.

FIG. 23 illustrates an exemplary read process for a destination TPV.

FIG. 24 illustrates an exemplary process for efficient migration of datafrom source TPV in source storage system to destination TPV indestination storage system.

FIG. 25 illustrates a copy process for migration of data stored in thesource TPV to the destination TPV.

FIG. 26 illustrates another copy process for migration of data stored inthe source TPV to the destination TPV.

FIG. 27 illustrates another example of unmatched boundary of segment andchunk between source storage system and destination storage system.

FIG. 28 illustrates another exemplary correspondence of the data to thenew chunk.

FIG. 29 illustrates an exemplary embodiment of a computer platform uponwhich the inventive system may be implemented.

DETAILED DESCRIPTION

In the following detailed description, reference will be made to theaccompanying drawing(s), in which identical functional elements aredesignated with like numerals. The aforementioned accompanying drawingsshow by way of illustration, and not by way of limitation, specificembodiments and implementations consistent with principles of thepresent invention. These implementations are described in sufficientdetail to enable those skilled in the art to practice the invention andit is to be understood that other implementations may be utilized andthat structural changes and/or substitutions of various elements may bemade without departing from the scope and spirit of present invention.The following detailed description is, therefore, not to be construed ina limited sense. Additionally, the various embodiments of the inventionas described may be implemented in the form of a software running on ageneral purpose computer, in the form of a specialized hardware, orcombination of software and hardware.

A. 1st Embodiment

A.1. System Configuration

FIG. 1 presents an overview of migration of thin provisioning volumesbetween multiple storage systems. As mentioned below, host computers 500and management computer 520 are connected to storage systems 100 by SAN900 and LAN 902. Each storage system 100 can provides thin provisioningvolumes to these computers. As also mentioned below, migration of datain one or more thin provisioning volumes from source storage system 100to destination storage system 100 via SAN 900 can be performed bydestination storage system 100 according to instructions from managementcomputer 520. In FIG. 2, as another example of configuration, SAN 900 isseparated before the migration to avoid influence of migration on SAN900 between host computer 500 and storage system 100.

FIG. 3 illustrates an exemplary system configuration. Specifically, astorage system 100, using which this invention may be implemented,consists of the following components: Storage controller 110; Mainprocessor 111; Switch 112; Host interface 113; Memory 200; Cache 300;Disk controller 400; Disks (e.g. HDD) 610; and Backend path 601 (e.g.Fibre Channel, SATA, SAS, iSCSI(IP)).

The Main processor 101 performs various processes with respect to thestorage controller 100. Main processor 101 and other components use thefollowing information stored in memory 200: Mapping information 201;Pool information 202; External storage information 203; Accessinformation 204; Relocation condition 205; and Relocation information206.

Main processor 101 performs the processes by executing the followingprograms stored in memory 200: Write process program 211; Read processprogram 212; Import program 213; Page relocation program 214; andRelocation decision program 215. The details of these processes aredescribed in detail below.

Host 500 and Management computer 520 are connected to host interface 113via SAN 900 (e.g. Fibre Channel, Fibre Channel over Ethernet,iSCSI(IP)). Host 500 and Management computer 520 and storage controller110 are connected each other via LAN 902 (e.g. IP network).

Volumes (Logical Units) provided by storage system 100 are produced fromcollection of areas in HDDs. They may be protected by storing paritycode (i.e. by RAID configuration) or mirroring.

Host 500 has file system 501, OS 502 and application program 503. Toperform these programs, host 500 also has resources such as processor,memory, storage devices not shown in FIG. 1.

Management computer 520 has file system 521, OS 522 and managementprogram 523. To perform these programs, host 500 also has resources suchas processor, memory, storage devices not shown in FIG. 1.

A.2. Overview of Method to Providing Volumes

FIG. 4 shows structure and method to provide TPV. The storage system 100has pool volumes 620 and divides pool volumes 620 into a number offixed-length areas called chunk 690. The storage system 100 assigns achunk 690 to a segment of a virtual volume (TPV) on write access. Inother words, physical storage area is assigned on demand. In FIG. 4, aTPV is constituted by multiple segments virtually, and a chunk 690 isallocated from pool volume 620 and assigned to a segment (i.e. a fixedlength area (page) of TPV). For example, chunk 4 is assigned to segment6 in this figure. That is, a TPV is a page-based volume.

To achieve this, storage controller 110 uses mapping information 201 andpool information 202. FIG. 5 is an example of mapping information 201.This information maintains mapping between chunks and segments of eachvolume. Status of assignation is ‘No’ if no chunk is assigned to thesegment. The Internal/External (tier) indicates whether the data in thechunk is located in this storage system 100 or external storage system100 connected by SAN 900. Performance for accessing chunks in externalstorage is generally lower than accessing internal chunk because accessto external storage system 100 has overhead, thus this information alsoindicates storage tier where the data located in. That is, internalstorage is higher tier and external storage is lower tier. A usage offlag of “under relocation” is described later. This information can beconstructed as list or directory of each element for faster search.

FIG. 6 shows an example of pool information 202. This informationmanages whether a chunk is used or not. By using this information,storage controller 110 is able to find free (unused) chunks in writeprocess described below. The tier that the chunk belongs to at that timeis indicated in ‘Tier’ section. This information also can be constructedas list or directory of each element to search a free chunk quickly. Asdescribed in FIG. 6, pool volumes 620 managed by this information caninclude volumes in external storage system 100. That is, this storagesystem 100 can use volumes provide by the external storage system 100via SAN 900 as virtual volumes of this storage system 100 and can applythe virtual volumes to pool volumes 620.

U.S. Pat. No. 7,441,096, incorporated herein by reference, discloses anexample of method to realize page-based transparent data relocationbetween chunks by copying data and changing mapping information 201 bythe storage system 100.

A.3. Write Process for TPV

FIG. 7 illustrates a write process for TPV 610.

At step 1001, host 500 issues a write request and transfers write datato storage controller 110.

At step 1002, the storage controller 110 checks target TPV 610 andtarget area of the write access by referring the write request.

At step 1003, the storage controller 110 checks the mapping information201 for a segment in the target area. If a chunk has already beenassigned to the segment, the process proceeds to step 1006. If not, theprocess proceeds to step 1004.

At step 1004, the storage controller 110 assigns a new chunk to storethe write data. To do this, the storage controller 110 updates mappinginformation 201 and pool information 202. By using pool information 202,the storage controller 110 finds the new chunk from internal storage.

At step 1005, the storage controller 110 stores the write data to thenew chunk. And then the process proceeds to step 1010.

At step 1006, the storage controller 110 checks ‘under relocation’ flagin mapping information 201. This flag is set in relocation processdescribed later and shows whether the chunk is under relocation or not.If under relocation, the process proceeds to step 1007. If not, theprocess proceeds to step 1009.

At step 1007, by referring relocation information 206 described later,the storage controller 110 checks whether the area regarding write inthe chunk has been copied in the relocation process. If yes, the processproceeds to step 1008. If not, the process proceeds to step 1009.

At step 1008, the storage controller 110 stores the write data to therelocation target.

At step 1009, the storage controller 110 stores the write data to theexisting chunk.

At step 1010, the storage controller 110 updates access information 204.This information records access characteristics regarding the segment(i.e. page) and used for determination of relocation described later.

At step 1011, if the storage controller 110 has checked all segments ofthe target area, the process ends. If not, the storage controller 110advances the check to the next segment (step 1012).

FIG. 8 illustrates an example of access information 204. This maintainsinformation regarding access each segments such as access rate per unittime, last access time and average access length, for each of read andwrite. The information regarding average access length may beinitialized at a certain interval.

A.4. Read Process for TPV

FIG. 9 shows a read process for TPV 610.

At step 1101, host 500 issues a read request to storage controller 110.

At step 1102, the storage controller 110 checks target TPV 610 andtarget area of the read access by referring the read request.

At step 1103, the storage controller 110 checks the mapping information201 for a segment in the target area. If a chunk has already beenassigned to the segment, the process proceeds to step 1104. If not, theprocess proceeds to step 1106.

At step 1104, the storage controller 110 transfers data stored in thechunk to the host 500.

At step 1105, the storage controller 110 updates access information 204.

At step 1106, the storage controller 110 sends data of zero (0) to thehost 500.

At step 1107, if the storage controller 110 has checked all segments ofthe target area, the process ends. If not, the storage controller 110advances the check to the next segment (step 1108).

A.5. Process for Migration of TPV Between Storage Systems

Migration of data stored in volumes between storage systems is requiredwhen the data is moved from old storage system to new storage system forrepurposing/reuse of the old storage system or when storage environmentis reconstructed in order to achieve centralized management on onestorage system with virtualization of external storage.

FIG. 10 describes process for efficient migration of data from sourceTPV 610 in source storage system 100 to destination TPV 610 indestination storage system 100.

Before the beginning of this process, source pool volumes 620 related tothe source TPV 610 in the source storage system 100 have to be reachablefrom the destination storage system 100 via SAN 900.

At step 1201, management computer 520 instructs storage system 100having source TPV 610 (source storage system 100) that pool volumes 620related to source TPV 610 (source pool volumes 620) accept read/writecommands.

At step 1202, the management computer 520 instructs source storagesystem 100 to prohibit write access to source TPV 610.

At step 1203, the management computer 520 checks whether the writeprocess is stopped or not. If the write process is stopped successfully,the process proceeds to step 1204. If not, the process proceeds to step1211.

At step 1204, the management computer 520 instructs destination storagesystem 100 to assign virtual volumes for the source pool volumes 620with write protection.

At step 1205, the destination storage system 100 assigns virtual volumesto the source pool volume 620 as external storage by updating externalstorage information 203. The virtual volumes may be write-protected.FIG. 11 illustrates an example of external storage information 203. Thisinformation maintains mapping between the virtual volume and volume ofexternal storage. Internal volume ID indicates an identifier of thevirtual volume in the destination storage system 100. Connection port IDindicates an identifier of a port connected to SAN 900 toward the sourcepool volume 620. That is, Connection port ID indicates identifier of aport of the destination storage system 100. External port ID indicatesan identifier of a port of the source storage system 100 wherein theport is used to access the source pool volume 620. External LUN (logicalunit number) indicates LUN of the source pool volume 620. Externalstorage system indicates information regarding the source storage system100 such as vender name, product name and serial number. As described inU.S. Pat. No. 7,162,600, the destination storage system 100 can accessvolumes in the source storage system 100 as own volume by using thisinformation.

At step 1206, the management computer 520 instructs the destinationstorage system 100 to import mapping information 201 of the sourcestorage system 100 for the source TPV 610 and pool information 202 ofthe source storage system 100 for the source pool volume 620.

At step 1207, the destination storage system 100 communicates with thesource storage system 100 via LAN 902 and obtains the mappinginformation 201 and the pool information 202 from the source storagesystem 100.

At step 1208, the destination storage system 100 updates poolinformation 202 of the destination storage system 100 by referring theexternal storage information 203 and the pool information 202 obtainedfrom the source storage system 100.

At step 1209, the destination storage system 100 creates destination TPV610 by updating mapping information 201 of the destination storagesystem 100 according to the external storage information 203 and mappinginformation 201 obtained from the source storage system 100. In otherwords, TPV 610 in the source storage system 100 is reproduced in thedestination storage system 100 and actual data located in externalstorage can be accessible by the aforesaid external storage accesscapability (via SAN 900).

After creation of the destination TPV 610 in the destination storagesystem 100, at step 1210, the destination storage system 100 relocates(adjusts) actual location of data in the destination TPV 610. Thedetailed process of relocation is described later.

At step 1211, the management computer 520 logs an occurrence of errorfor the migration and reports failure of the migration to user.

A.6. Relocation Decision Process

FIG. 12 shows a process for determining whether the relocation will beperformed or not.

At step 1301, storage controller 110 chooses a segment (i.e. page) to beexamined.

At step 1302, by referring access information 204, the storagecontroller 110 obtains (a) value(s) to be compared with relocationcondition 205.

At step 1303, the storage controller 110 decides whether relocation ofdata in the segment should be performed according to relocationcondition 205. FIG. 13 shows an example of relocation condition 205.This information maintains conditions to determine occurrence ofrelocation for each movement between tiers. The condition may beregistered by user via host 500, management computer 520 and/ormanagement terminal of the storage system 100. The storage controller110 can determine the occurrence by referring (comparing) the abovevalue(s) and the conditions.

At step 1304, if the relocation will be performed as the result of thedecision, the process proceeds to step 1305. If not, the process ends.

At step 1305, the storage controller 110 finds a destination of therelocation in suitable tier determined from the condition and updatespool information 202.

At step 1306, the storage controller 110 performs the relocation. Thedetailed process is described later.

In order to adjust actual location of data in TPV 610 according to usageof data, the above relocation decision process is repeated at apredetermined interval or performed when load of the storage system 110is low. This process is performed for segments that have stored data. Bythis process, location of data is adjusted in one storage resource poolincluding internal storage and external storage, and data can be movedfrom external storage (i.e. source storage system 100) to internalstorage (i.e. destination storage system 100) according to conditionslike access rate.

A.7. Relocation Process

FIG. 14 illustrates the relocation process performed in step 1306described in FIG. 12.

At step 1401, storage controller 110 makes an entry in relocationinformation 206 for the segment to be moved. FIG. 15 shows an example ofthe relocation information 206. Relocation information 206 has ID of thesegment to be moved, information regarding the unused location selectedas destination and copy pointer that denotes progress of copy. Thestorage controller 110 also sets a flag of “under relocation” for thesegment in mapping information 201 to ‘Yes’.

At step 1402, the storage controller 110 copies data in the segment tolocation selected as destination. According to progress of the copying,copy pointer in relocation information 206 is updated and is movingforward.

At step 1403, after completion of the copying, storage controller 110updates mapping information 201 to change mapping between the segmentand physical location according to the relocation. This realizes thetransparent relocation of the segment for host 500.

At step 1404, the storage controller 110 updates pool information 202 torelease the chunk that had the segment if no segment uses the chunk.

At step 1405, the storage controller 110 deletes the entry in relocationinformation 206 and updates mapping information to set the flag of“under relocation” for the segment to ‘No’.

By using the method described above, efficient migration of TPV 610between pluralities of storage systems is achieved. This migrationmethod realizes reduction of amount of data handled and transferred inthe migration. It also realizes unified storage pool including internalstorage and external storage with data placement optimization byautomated data relocation.

B. 2nd Embodiment

Size of segment (i.e. size of chunk) can be different between sourcestorage system 100 and destination storage system 100, especially whenthey are different products. As illustrated in FIG. 16, difference ofsegment size causes discrepancy of boundary of segment and chunk betweensource storage system 100 and destination storage system 100. Thefollowing processes described in this embodiment can be appliedespecially when segment size is different between source TPV 610 anddestination TPV 610.

B.1. Process for Migration of TPV Between Storage Systems

FIG. 17 describes process for efficient migration of data from sourceTPV 610 in source storage system 100 to destination TPV 610 indestination storage system 100.

Before the beginning of this process, source pool volumes 620 related tothe source TPV 610 in the source storage system 100 have to be reachablefrom the destination storage system 100 via SAN 900.

Step 1501-1505 and step 1512 are the same as step 1201-1205 and step1212 described in FIG. 10. The differences are explained below.

At step 1506, the management computer 520 instructs the destinationstorage system 100 to obtain mapping information 201 of the sourcestorage system 100 for the source TPV 610 and pool information 202 ofthe source storage system 100 for the source pool volume 620.

At step 1507, the destination storage system 100 communicates with thesource storage system 100 via LAN 902 and obtains the mappinginformation 201 and the pool information 202 from the source storagesystem 100.

At step 1508, the destination storage system 100 creates destination TPV610 having the same virtual size as the source TPV 610. The destinationTPV 610 has initial state of TPV 610 at this time.

At step 1509, the destination storage system 100 copies data from sourcepool volumes 620 to destination pool volumes 620 for migration betweenthe source TPV 610 to the destination TPV 610 according to obtainedmapping information 201 and pool information 202. The detailed processof copy process is described later. The destination storage system 100can process write command and read command from host 500 in parallelwith the copy process.

After completion of the copying, at step 1510, the management computer520 instructs the source storage system 100 to release the source TPV610 and related resources such as storage area in the source poolvolumes 620 and memory to maintain information for the source TPV 610.The management computer 520 monitors progress and completion of thecopying.

At step 1511, the source storage system 100 deletes the source TPV 610and releases the related resources. These released resources can bereused by the source storage system 100. They may also be reused by thedestination storage system 100 via SAN 900. For example, the destinationstorage system 100 can use the released pool volumes 620 as externalstorage and can apply them as additional pool volumes 620.

Examples of mapping information 201 and pool information 202 used inthis embodiment are shown in FIG. 18 and FIG. 19. Each element of thetables is the same as the element explained in the previous embodiment.

B.2. Copy Process for Migration of TPV

FIG. 20 illustrates the aforesaid copy process for migration of datastored in the source TPV 610 to the destination TPV 610.

At step 1601, storage controller 110 of the destination storage system100 selects the first segment of destination TPV 610 as the segment tobe processed.

At step 1602, the storage controller 110 checks mapping information 201of the destination storage system 100 for the segment. If a chunk in thedestination storage system 100 has already been assigned to the segment,the process proceeds to step 1606. If not, the process proceeds to step1603.

At step 1603, the storage controller 110 checks mapping information 201obtained from the source storage system 100. If one or more chunkscorresponding to the segment exist in source pool volumes 620 of thesource storage system 100, the process proceeds to step 1604. If not,the process proceeds to step 1606. The storage controller 110 canrecognize how the destination segment corresponds to source segments bycalculation with destination segment ID, destination segment size,source segment ID and source segment size as illustrated in FIG. 16(e.g. first source segment ID=(destination segment ID×destinationsegment size)/source segment size).

At step 1604, the storage controller 110 assigns a new chunk indestination pool volumes 620 in the destination storage system 100. Todo this, the storage controller 110 updates mapping information 201 andpool information 202 of the destination storage system 100.

At step 1605, the storage controller 110 reads data from thecorresponding chunks in the source pool volumes 620 via SAN 900 andstores the data to the new chunk according to the correspondence (i.e.overlapping of the destination segment and source segment having chunk)as shown in FIG. 21. If the destination segment partially includes areathat no source chunk corresponds to, the storage controller 100 storesdata of zero (0) to the area of new chunk as described in FIG. 21.

At step 1606, if the storage controller 110 has checked all segments ofthe destination TPV 610, the process ends. If not, the storagecontroller 110 advances the check to the next segment (step 1607).

B.3. Write Process for TPV

FIG. 22 illustrates a write process for destination TPV 610. Thisprocess can be performed in parallel with the above copy process. Inother words, the destination storage system 100 can accept write commandin parallel with performing the copy process.

At step 1701, host 500 issues a write request and transfers write datato storage controller 110 of the destination storage system 100.

At step 1702, the storage controller 110 checks target TPV 610 andtarget area of the write access by referring the write request.

At step 1703, the storage controller 110 checks the mapping information201 of the destination storage system 100 for a segment in the targetarea. If a chunk has already been assigned to the segment, the processproceeds to step 1708. If not, the process proceeds to step 1704.

At step 1704, the storage controller 110 assigns a new chunk to storethe write data. To do this, the storage controller 110 updates mappinginformation 201 and pool information 202.

At step 1705, the storage controller 110 checks mapping information 201obtained from the source storage system 100. If one or more chunkscorresponding to the target area exist in source pool volumes 620 of thesource storage system 100, the process proceeds to step 1706. If not,the process proceeds to step 1707.

At step 1706, the storage controller 110 reads data from thecorresponding chunks in the source pool volumes 620 via SAN 900 andstores the data to the new chunk according to the correspondence (i.e.overlapping of the destination segment and source segment having chunk).If the destination segment partially includes area that no source chunkcorresponds to, the storage controller 100 stores data of zero (0) tothe area of new chunk.

At step 1707, the storage controller 110 stores the write data to thenew chunk.

At step 1708, the storage controller 110 stores the write data to theexisting chunk in destination pool volume 620 of the destination storagesystem 100.

At step 1709, the storage controller 110 updates access information 204.

At step 1710, if the storage controller 110 has checked all segments ofthe target area, the process ends. If not, the storage controller 110advances the check to the next segment (step 1711).

B.4. Read Process for TPV

FIG. 23 shows a read process for destination TPV 610. This process canalso be performed in parallel with the above copy process. In otherwords, the destination storage system 100 can accept read command inparallel with performing the copy process.

At step 1801, host 500 issues a read request to storage controller 110of the destination storage system 100.

At step 1802, the storage controller 110 checks target TPV 610 andtarget area of the read access by referring the read request.

At step 1803, the storage controller 110 checks the mapping information201 of the destination storage system 100 for a segment in the targetarea. If a chunk has already been assigned to the segment, the processproceeds to step 1807. If not, the process proceeds to step 1804.

At step 1804, the storage controller 110 checks mapping information 201obtained from the source storage system 100. If one or more chunkscorresponding to the target area exist in source pool volumes 620 of thesource storage system 100, the process proceeds to step 1805. If not,the process proceeds to step 1808.

At step 1805, the storage controller 110 reads data from thecorresponding chunks in the source pool volumes 620 via SAN 900.

At step 1806, the storage controller 110 transfer the read data to thehost 500. If the target area includes area that no source chunkcorresponds to, the storage controller 100 fills the gap with data ofzero (0) in transferring the data.

At step 1807, the storage controller 110 transfers data stored in theexisting chunk in destination pool volume 620 of the destination storagesystem to the host 500.

At step 1808, the storage controller 110 sends data of zero (0) to thehost 500.

At step 1809, the storage controller 110 updates access information 204.

At step 1810, if the storage controller 110 has checked all segments ofthe target area, the process ends. If not, the storage controller 110advances the check to the next segment (step 1811).

By using the method described above, efficient migration of TPV betweenpluralities of storage systems is achieved even if the segment size isdifferent between the storage systems. This migration method realizesreduction of amount of data handled and transferred in the migration.

In addition to migration from small segments to large segmentsillustrated in FIG. 16 and FIG. 21, the method described in thisembodiment can be applied to migration from large segments to smallsegments as illustrated in FIG. 27 and FIG. 28.

C. 3rd Embodiment

The following processes described in this embodiment realize migrationof TPV 610 by copying data from source TPV 610 not pool volumes 620. Byusing the method described below, efficient migration of TPV 610 betweenpluralities of storage systems is achieved even if the segment size isdifferent between the storage systems. This migration method can realizebenefits such as reduction of amount of data transferred in themigration.

C.1. Process for Migration of TPV Between Storage Systems

FIG. 24 describes process for efficient migration of data from sourceTPV 610 in source storage system 100 to destination TPV 610 indestination storage system 100.

Before the beginning of this process, the source TPV 610 in the sourcestorage system 100 have to be reachable from the destination storagesystem 100 via SAN 900.

Step 1910-1912 are the same as step 1510-1512 described in FIG. 17. Thedifferences are explained in detail below.

At step 1901, the management computer 520 instructs source storagesystem 100 to prohibit write access to source TPV 610.

At step 1902, the management computer 520 checks whether the writeprocess is stopped or not. If the write process is stopped successfully,the process proceeds to step 1903. If not, the process proceeds to step1912.

At step 1903, the management computer 520 instructs destination storagesystem 100 to assign virtual volumes for source TPV 610 with writeprotection.

At step 1904, the destination storage system 100 assigns virtual volumeto the source TPV 610 as external storage by updating external storageinformation 203. As described in U.S. Pat. No. 7,162,600, thedestination storage system 100 can access volumes in source storagesystem 100 as own volume by using this information. The virtual volumeis write-protected.

At step 1905, the management computer 520 instructs the destinationstorage system 100 to obtain mapping information 201 of the sourcestorage system 100 for the source TPV 610.

At step 1906, the destination storage system 100 communicates with thesource storage system 100 via LAN 902 and obtains the mappinginformation 201 from the source storage system 100.

At step 1907, the destination storage system 100 creates destination TPV610 having the same virtual size as the source TPV 610. The destinationTPV 610 has initial state of TPV 610 at this time. The destinationstorage system 100 rejects write commands from host 500 to thedestination TPV 610 at this time.

At step 1908, the destination storage system 100 copies data from thesource TPV 610 to the destination TPV 610 according to obtained mappinginformation 201. The detailed process of copy process is describedlater.

After completion of the copying, at step 1909, the destination storagesystem 100 starts to accept write commands from host 500 to thedestination TPV 610.

C.2. Copy Process for Migration of TPV

FIG. 25 illustrates the aforesaid copy process in this embodiment formigration of data stored in the source TPV 610 to the destination TPV610.

At step 2001, storage controller 110 of the destination storage system100 selects the first segment of destination TPV 610 as the segment tobe processed.

At step 2002, the storage controller 110 checks mapping information 201obtained from the source storage system 100. If one or more chunkscorresponding to the segment exist in source pool volumes 620 of thesource storage system 100, the process proceeds to step 2003. If not,the process proceeds to step 2005.

At step 2003, the storage controller 110 assigns a new chunk indestination pool volumes 620 in the destination storage system 100. Todo this, the storage controller 110 updates mapping information 201 andpool information 202 of the destination storage system 100.

At step 2004, the storage controller 110 reads data from the source TPV610 via SAN 900 according to the aforesaid correspondence (i.e.overlapping of the destination segment and source segment having chunk).And then, the storage controller 110 stores the data to the new chunkaccording to the correspondence. When the destination segment partiallyincludes area that no source chunk corresponds to, the storagecontroller 100 stores data of zero (0) to the area of new chunk.

At step 2005, if the storage controller 110 has checked all segments ofthe destination TPV 610, the process ends. If not, the storagecontroller 110 advances the check to the next segment (step 2006).

FIG. 26 illustrates another embodiment of the copy process for migrationof data stored in the source TPV 610 to the destination TPV 610. Thiscopy process performs detection of zero (0) data to eliminateunnecessary storing of data. Therefore, with this copy process,acquisition of mapping information 201 from the source storage system100 is not required to eliminate unnecessary storing of data.

At step 2101, storage controller 110 of the destination storage system100 selects the first segment of destination TPV 610 as the segment tobe processed.

At step 2102, the storage controller 110 reads data of areacorresponding to the destination segment from the source TPV 610 via SAN900.

At step 2103, the storage controller 110 checks the data. If the data isall zero (0) data, the process proceeds to step 2106. If not, theprocess proceeds to step 2104.

At step 2104, the storage controller 110 assigns a new chunk indestination pool volumes 620 in the destination storage system 100. Todo this, the storage controller 110 updates mapping information 201 andpool information 202 of the destination storage system 100.

At step 2105, the storage controller 110 stores the data to the newchunk.

At step 2106, if the storage controller 110 has checked all segments ofall segments of the destination TPV 610, the process ends. If not, thestorage controller 110 advances the check to the next segment (step2107).

In the above process, zero data is recognized as data indicating unuseddata. Other specific (predetermined) pattern of data can be utilized asdata indicating unused data. That is, at step 2103, the specifiedpattern of data can be detected instead of zero data. Moreover, multiplepatterns of data which may include all zero can be utilized as dataindicating unused data.

In the above methods for migration, the migration processes areperformed according to instructions from management computer 520.However, the process may be performed according to a migrationmanagement function of the storage systems 100 without managementcomputer 520. For example, the principal capability of the managementcomputer 520 mentioned above may be possessed in the destination storagesystem 100 or the source storage system 100 by executing the managementprogram 520 in the storage system 100.

D. Exemplary Computer Platform

FIG. 29 is a block diagram that illustrates an embodiment of acomputer/server system 2200 upon which an embodiment of the inventivemethodology may be implemented. The system 2200 includes acomputer/server platform 2201, peripheral devices 2202 and networkresources 2203.

The computer platform 2201 may include a data bus 2204 or othercommunication mechanism for communicating information across and amongvarious parts of the computer platform 2201, and a processor 2205coupled with bus 2201 for processing information and performing othercomputational and control tasks. Computer platform 2201 also includes avolatile storage 2206, such as a random access memory (RAM) or otherdynamic storage device, coupled to bus 2204 for storing variousinformation as well as instructions to be executed by processor 2205.The volatile storage 2206 also may be used for storing temporaryvariables or other intermediate information during execution ofinstructions by processor 2205. Computer platform 2201 may furtherinclude a read only memory (ROM or EPROM) 2207 or other static storagedevice coupled to bus 2204 for storing static information andinstructions for processor 2205, such as basic input-output system(BIOS), as well as various system configuration parameters. A persistentstorage device 2208, such as a magnetic disk, optical disk, orsolid-state flash memory device is provided and coupled to bus 2201 forstoring information and instructions.

Computer platform 2201 may be coupled via bus 2204 to a display 2209,such as a cathode ray tube (CRT), plasma display, or a liquid crystaldisplay (LCD), for displaying information to a system administrator oruser of the computer platform 2201. An input device 2210, includingalphanumeric and other keys, is coupled to bus 2201 for communicatinginformation and command selections to processor 2205. Another type ofuser input device is cursor control device 2211, such as a mouse, atrackball, or cursor direction keys for communicating directioninformation and command selections to processor 2204 and for controllingcursor movement on display 2209. This input device typically has twodegrees of freedom in two axes, a first axis (e.g., x) and a second axis(e.g., y), that allows the device to specify positions in a plane.

An external storage device 2212 may be coupled to the computer platform2201 via bus 2204 to provide an extra or removable storage capacity forthe computer platform 2201. In an embodiment of the computer system2200, the external removable storage device 2212 may be used tofacilitate exchange of data with other computer systems.

The invention is related to the use of computer system 2200 forimplementing the techniques described herein. In an embodiment, theinventive system may reside on a machine such as computer platform 2201.According to one embodiment of the invention, the techniques describedherein are performed by computer system 2200 in response to processor2205 executing one or more sequences of one or more instructionscontained in the volatile memory 2206. Such instructions may be readinto volatile memory 2206 from another computer-readable medium, such aspersistent storage device 2208. Execution of the sequences ofinstructions contained in the volatile memory 2206 causes processor 2205to perform the process steps described herein. In alternativeembodiments, hard-wired circuitry may be used in place of or incombination with software instructions to implement the invention. Thus,embodiments of the invention are not limited to any specific combinationof hardware circuitry and software.

The term “computer-readable medium” as used herein refers to any mediumthat participates in providing instructions to processor 2205 forexecution. The computer-readable medium is just one example of amachine-readable medium, which may carry instructions for implementingany of the methods and/or techniques described herein. Such a medium maytake many forms, including but not limited to, non-volatile media andvolatile media. Non-volatile media includes, for example, optical ormagnetic disks, such as storage device 2208. Volatile media includesdynamic memory, such as volatile storage 2206.

Common forms of computer-readable media include, for example, a floppydisk, a flexible disk, hard disk, magnetic tape, or any other magneticmedium, a CD-ROM, any other optical medium, punchcards, papertape, anyother physical medium with patterns of holes, a RAM, a PROM, an EPROM, aFLASH-EPROM, a flash drive, a memory card, any other memory chip orcartridge, or any other medium from which a computer can read.

Various forms of computer readable media may be involved in carrying oneor more sequences of one or more instructions to processor 2205 forexecution. For example, the instructions may initially be carried on amagnetic disk from a remote computer. Alternatively, a remote computercan load the instructions into its dynamic memory and send theinstructions over a telephone line using a modem. A modem local tocomputer system 2200 can receive the data on the telephone line and usean infra-red transmitter to convert the data to an infra-red signal. Aninfra-red detector can receive the data carried in the infra-red signaland appropriate circuitry can place the data on the data bus 2204. Thebus 2204 carries the data to the volatile storage 2206, from whichprocessor 2205 retrieves and executes the instructions. The instructionsreceived by the volatile memory 2206 may optionally be stored onpersistent storage device 2208 either before or after execution byprocessor 2205. The instructions may also be downloaded into thecomputer platform 2201 via Internet using a variety of network datacommunication protocols well known in the art.

The computer platform 2201 also includes a communication interface, suchas network interface card 2213 coupled to the data bus 2204.Communication interface 2213 provides a two-way data communicationcoupling to a network link 2214 that is coupled to a local network 2215.For example, communication interface 2213 may be an integrated servicesdigital network (ISDN) card or a modem to provide a data communicationconnection to a corresponding type of telephone line. As anotherexample, communication interface 2213 may be a local area networkinterface card (LAN NIC) to provide a data communication connection to acompatible LAN. Wireless links, such as well-known 802.11a, 802.11b,802.11g and Bluetooth may also used for network implementation. In anysuch implementation, communication interface 2213 sends and receiveselectrical, electromagnetic or optical signals that carry digital datastreams representing various types of information.

Network link 2213 typically provides data communication through one ormore networks to other network resources. For example, network link 2214may provide a connection through local network 2215 to a host computer2216, or a network storage/server 2217. Additionally or alternatively,the network link 2213 may connect through gateway/firewall 2217 to thewide-area or global network 2218, such as an Internet. Thus, thecomputer platform 2201 can access network resources located anywhere onthe Internet 2218, such as a remote network storage/server 2219. On theother hand, the computer platform 2201 may also be accessed by clientslocated anywhere on the local area network 2215 and/or the Internet2218. The network clients 2220 and 2221 may themselves be implementedbased on the computer platform similar to the platform 2201.

Local network 2215 and the Internet 2218 both use electrical,electromagnetic or optical signals that carry digital data streams. Thesignals through the various networks and the signals on network link2214 and through communication interface 2213, which carry the digitaldata to and from computer platform 2201, are exemplary forms of carrierwaves transporting the information.

Computer platform 2201 can send messages and receive data, includingprogram code, through the variety of network(s) including Internet 2218and LAN 2215, network link 2214 and communication interface 2213. In theInternet example, when the system 2201 acts as a network server, itmight transmit a requested code or data for an application programrunning on client(s) 2220 and/or 2221 through Internet 2218,gateway/firewall 2217, local area network 2215 and communicationinterface 2213. Similarly, it may receive code from other networkresources.

The received code may be executed by processor 2205 as it is received,and/or stored in persistent or volatile storage devices 2208 and 2206,respectively, or other non-volatile storage for later execution. In thismanner, computer system 2201 may obtain application code in the form ofa carrier wave.

It should be noted that the present invention is not limited to anyspecific firewall system. The inventive policy-based content processingsystem may be used in any of the three firewall operating modes andspecifically NAT, routed and transparent.

Finally, it should be understood that processes and techniques describedherein are not inherently related to any particular apparatus and may beimplemented by any suitable combination of components. Further, varioustypes of general purpose devices may be used in accordance with theteachings described herein. It may also prove advantageous to constructspecialized apparatus to perform the method steps described herein. Thepresent invention has been described in relation to particular examples,which are intended in all respects to be illustrative rather thanrestrictive. Those skilled in the art will appreciate that manydifferent combinations of hardware, software, and firmware will besuitable for practicing the present invention. For example, thedescribed software may be implemented in a wide variety of programmingor scripting languages, such as Assembler, C/C++, perl, shell, PHP,Java, etc.

Moreover, other implementations of the invention will be apparent tothose skilled in the art from consideration of the specification andpractice of the invention disclosed herein. Various aspects and/orcomponents of the described embodiments may be used singly or in anycombination in the computerized systems for migrating thin provisioningvolumes and for unifying the storage resource pool. It is intended thatthe specification and examples be considered as exemplary only, with atrue scope and spirit of the invention being indicated by the followingclaims.

What is claimed is:
 1. A storage system configured as a destination storage system for a migration, the storage system coupled to another storage system, the storage system comprising: a plurality of storage disks; a storage controller configured to: manage a pool volume having a storage area provided by the plurality of the storage disks, manage a virtual volume as a thin provisioned volume having one or more segments of a first size to which one or more chunks in the pool volume are allocated when the storage controller writes to the one or more segments, wherein, when data, stored in a source virtual volume managed by the another storage system as another thin provisioned volume having one or more segments of a second size different from the first size, is migrated to the virtual volume, the storage controller is further configured to: obtain mapping information of the source virtual volume from the another storage system configured as a source storage system for the migration; check the obtained mapping information to determine whether another chunk in another pool volume managed by the another storage system has been allocated to a source segment of the source virtual volume, recognize a destination segment, corresponding to the source segment, in the virtual volume based on a size of the destination segment and a size of the source segment, and read the data stored in the source segment to store the data in the recognized destination segment of the virtual volume, if the another chunk has been allocated to the another segment.
 2. The storage system according to claim 1, wherein the storage controller is further configured to: allocate a new chunk to the destination segment, and store the data to the allocated chunk.
 3. The storage system according to claim 2, wherein the storage controller is further configured to: update mapping information of the virtual volume, if the storage controller allocates the new chunk to the destination segment of the virtual volume.
 4. The storage system according to claim 1, wherein the storage controller is further configured to: not read the data stored in the source segment for migration if the another chunk has not been allocated to the source segment.
 5. The storage system according to claim 1, wherein the mapping information of the source virtual volume indicates whether the another chunk has been allocated to the another segment.
 6. A storage system comprising: a first storage apparatus configured as a destination storage apparatus for a migration, comprising: a plurality of first storage disks, and a first storage controller configured to: manage a first pool volume having a storage area provided by the plurality of the first storage disks, and manage a first virtual volume as a thin provisioned volume having one or more first segments of a first size to which one or more first chunks in the first pool volume is allocated when the first storage controller writes to the one or more first segments and, a second storage apparatus coupled to the first storage apparatus and configured as a source storage apparatus for the migration, comprising: a plurality of second storage disks, and a second storage controller configured to: manage a second pool volume having a storage area provided by the plurality of the second storage disks, and manage a second virtual volume as another thin provisioned volume having one or more second segments of a second size different from the first size to which a one or more second chunks in the second pool volume is allocated when the second storage controller writes to the one or more second segments; wherein when data stored in the second virtual volume managed by the second storage system is to be migrated to the first virtual volume, the first storage controller is configured to: obtain mapping information of the second virtual volume from the second storage system and check the obtained mapping information to determine whether a source one of the one or more second chunks has been allocated to a source one of the one or more second segments of the second virtual volume; recognize a destination one of the one or more first segments, corresponding to the source one of the one or more second segments, in the first virtual volume based on a size of the destination one of the one or more first segments and a size of the source one of the one or more second segments; and read the data stored in the source one of the one or more second segments to store the data in the recognized destination one of the one or more first segments of the first virtual volume.
 7. The storage system according to claim 6, wherein the first storage controller is further configured to: allocate a new chunk to the destination one of the one or more first segments of the first virtual volume, and store the data to the allocated chunk.
 8. The storage system according to claim 7, wherein the first storage controller is further configured to: update mapping information of the first virtual volume, if the first storage controller allocates the new chunk to the destination one of the one or more segments of the first virtual volume.
 9. The storage system according to claim 6, wherein the first storage controller is further configured to: not read the data stored in the one or more second segments for migration if the source one of the one or more second chunks has not been allocated to the source one of the one or more second segments.
 10. The storage system according to claim 6, wherein the mapping information of the second virtual volume indicates whether the source one of the one or more second chunks has been allocated to the source one of the one or more second segments.
 11. A method, comprising: managing a first pool volume having a storage area that is provided by a plurality of storage disks of a first storage system configured as a destination storage system for a migration, managing a first virtual volume configured as a thin provisioned volume having one or more first segments of a first size to which one or more first chunks in the first pool volume is allocated when a write is performed to the one or more first segments, wherein when data stored in a second virtual volume configured as another thin provisioned volume having one or more second segments of a second size different from the first size and managed by a second storage system is migrated to the first virtual volume: obtaining mapping information of the second virtual volume from the second storage system; checking the obtained mapping information to determine whether a second chunk in a second pool volume managed by the second storage system has been allocated to a second segment of the second virtual volume, recognizing a destination one of the one or more first segments, corresponding to the second segment, in the first virtual volume based on a size of the destination one of the one or more first segments and a size of the second segment; and reading the data stored in the one or more second segments to store the data in the destination one of the one or more first segments of the first virtual volume.
 12. The method of claim 11, further comprising: allocating a new chunk to the destination one of the one or more first segments of the first virtual volume, and storing the data to the allocated chunk.
 13. The method of claim 12, further comprising: updating mapping information of the first virtual volume, if the new chunk is allocated to the destination one of the one or more segments of the first virtual volume.
 14. The method of claim 11, further comprising: not reading the data stored in the second segment for migration if the second chunk has not been allocated to the second segment.
 15. The method of claim 11, wherein the mapping information of the second virtual volume indicates whether the second chunk has been allocated to the second segment. 